#!/usr/bin/python
#Filename: back_ver1.py

import os
import time

source = ['/nothing/python', '/root/AD']

target_dir = '/tmp/'

target = target_dir + time.strftime('%Y%m%d%H%M%S') + '.zip'

print '%s' % target
print '%s' % ' '.join(source)
zip_command = "zip -qr '%s' %s" % (target, ' '.join(source))

if os.system(zip_command) == 0:
    print 'Successfull backup to', target
else:
    print 'Backup failed'
